//
//  MusicViewController.swift
//  FirstSwiftProduct
//
//  Created by 知合金服-Mini on 2017/12/19.
//  Copyright © 2017年 范泽华. All rights reserved.
//

import UIKit

class MusicViewController: BasePushViewController ,UITableViewDelegate,UITableViewDataSource{
    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return 10
    }
    
    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        return UITableViewCell.init()
    }
    

    var table :UITableView!
    
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        
        table = UITableView.init(frame: CGRect(x: 0, y: CGFloat(kStatus_Navigation_height), width: SCREEN_WIDTH, height: SCRENN_HEIGHT - CGFloat(kStatus_Navigation_height)), style: .plain)
        table.delegate = self
        table.dataSource = self
        view.addSubview(table)
        table.tableFooterView = UIView.init()
        
        let search = FZH_SearchBar.init(frame: CGRect(x: 0, y: 0, width: SCREEN_WIDTH, height: 44))
        table.tableHeaderView = search
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
        let detail = MusicPlayerController()
        self.navigationController?.pushViewController(detail, animated: true)
        
    }
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
